package com.bupt.ilink.http;

public enum RState implements State {

    SUCCESS(1, "Success"),

    FAILURE(0, "Failure"),;

    private final Integer code;

    private final String message;

    RState(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
